//  销售部门所属加工区域配置
import request from '@/router/axios'

export function fetchWorkDeptList(query) {
  return request({
    url: '/eims/workdept/page',
    method: 'get',
    params: query
  })
}

export function addWorkDeptObj(obj) {
  return request({
    url: '/eims/workdept',
    method: 'post',
    data: obj
  })
}

export function getWorkDeptObj(id) {
  return request({
    url: '/eims/workdept/' + id,
    method: 'get'
  })
}

export function delWorkDeptObj(id) {
  return request({
    url: '/eims/workdept/' + id,
    method: 'delete'
  })
}

export function putWorkDeptObj(obj) {
  return request({
    url: '/eims/workdept',
    method: 'put',
    data: obj
  })
}
